<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/webjars/jquery/3.5.1/jquery.min.js"></script>
    <link rel="stylesheet" href="/webjars/bootstrap/4.4.1-1/css/bootstrap.min.css">
</head>
<body>

<div class="container">
     <h4>修改用户</h4>
<form  method="post" action="/user/update">
    <input type="hidden" name="id" value="${user.id}">
    <input type="text" name="name" value="${user.name}"><br>
    <input type="text" name="birthday" value="${(user.birthday ?string('yyyy-MM-dd')) !}" ><br>
    <#if user.sex == 0>
        <input type="radio" name="sex" value="0" checked>男
    <#else>
        <input type="radio" name="sex" value="0">男
    </#if>
    <#if user.sex == 1>
        <input type="radio" name="sex" value="1" checked>女<br>
    <#else>
        <input type="radio" name="sex" value="1">女<br>
    </#if>
    <button class="btn btn-success">提交</button>
</form>
</div>
</body>
</html>